<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        // let str = "abc";
        // let str1 = 'abc';


        // 1. 模板字符串使用 ` 引起来
        // 2. 模板字符串可以换行 
        // 3. 模板字符串中可以使用${js表达式}的形式插入数据

        let obj = {
            name: "zcm",
            age: 18
        }

        var count = 100;

        let templateStr = `我叫${obj.name},我今年${obj.age}岁 ${count}`;

        console.log(templateStr)
    
    </script>
</body>

</html>